package com.example.zaq.model;

import lombok.Data;

import java.io.Serializable;

/**
 * asp_kind_model
 * @author 
 */
@Data
public class AspKindModel implements Serializable {
    /**
     * 返回信息
     */
    private  String note;
    /**
     * 返回码，>0表示成功
     */
    private  Integer code;

    private Integer kMId;

    /**
     * 模板名称
     */
    private String mName;

    /**
     * 模板说明
     */
    private String mText;

    /**
     * 账簿类型
     */
    private Integer mTable1;

    /**
     * 账簿名称
     */
    private String mName1;

    /**
     * 是否添加账簿，1|是；0|否；
     */
    private Boolean mFlag1;

    /**
     * 说说分组类型
     */
    private Integer mTable2;

    private String mName2;

    /**
     * 是否添加说说分组，1|是；0|否
     */
    private Boolean mFlag2;

    private Boolean delete;

    private static final long serialVersionUID = 1L;

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getkMId() {
        return kMId;
    }

    public void setkMId(Integer kMId) {
        this.kMId = kMId;
    }

    public String getmName() {
        return mName;
    }

    public void setmName(String mName) {
        this.mName = mName;
    }

    public String getmText() {
        return mText;
    }

    public void setmText(String mText) {
        this.mText = mText;
    }

    public Integer getmTable1() {
        return mTable1;
    }

    public void setmTable1(Integer mTable1) {
        this.mTable1 = mTable1;
    }

    public String getmName1() {
        return mName1;
    }

    public void setmName1(String mName1) {
        this.mName1 = mName1;
    }

    public Boolean getmFlag1() {
        return mFlag1;
    }

    public void setmFlag1(Boolean mFlag1) {
        this.mFlag1 = mFlag1;
    }

    public Integer getmTable2() {
        return mTable2;
    }

    public void setmTable2(Integer mTable2) {
        this.mTable2 = mTable2;
    }

    public String getmName2() {
        return mName2;
    }

    public void setmName2(String mName2) {
        this.mName2 = mName2;
    }

    public Boolean getmFlag2() {
        return mFlag2;
    }

    public void setmFlag2(Boolean mFlag2) {
        this.mFlag2 = mFlag2;
    }

    public Boolean getDelete() {
        return delete;
    }

    public void setDelete(Boolean delete) {
        this.delete = delete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AspKindModel other = (AspKindModel) that;
        return (this.getkMId() == null ? other.getkMId() == null : this.getkMId().equals(other.getkMId()))
            && (this.getmName() == null ? other.getmName() == null : this.getmName().equals(other.getmName()))
            && (this.getmText() == null ? other.getmText() == null : this.getmText().equals(other.getmText()))
            && (this.getmTable1() == null ? other.getmTable1() == null : this.getmTable1().equals(other.getmTable1()))
            && (this.getmName1() == null ? other.getmName1() == null : this.getmName1().equals(other.getmName1()))
            && (this.getmFlag1() == null ? other.getmFlag1() == null : this.getmFlag1().equals(other.getmFlag1()))
            && (this.getmTable2() == null ? other.getmTable2() == null : this.getmTable2().equals(other.getmTable2()))
            && (this.getmName2() == null ? other.getmName2() == null : this.getmName2().equals(other.getmName2()))
            && (this.getmFlag2() == null ? other.getmFlag2() == null : this.getmFlag2().equals(other.getmFlag2()))
            && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getkMId() == null) ? 0 : getkMId().hashCode());
        result = prime * result + ((getmName() == null) ? 0 : getmName().hashCode());
        result = prime * result + ((getmText() == null) ? 0 : getmText().hashCode());
        result = prime * result + ((getmTable1() == null) ? 0 : getmTable1().hashCode());
        result = prime * result + ((getmName1() == null) ? 0 : getmName1().hashCode());
        result = prime * result + ((getmFlag1() == null) ? 0 : getmFlag1().hashCode());
        result = prime * result + ((getmTable2() == null) ? 0 : getmTable2().hashCode());
        result = prime * result + ((getmName2() == null) ? 0 : getmName2().hashCode());
        result = prime * result + ((getmFlag2() == null) ? 0 : getmFlag2().hashCode());
        result = prime * result + ((getDelete() == null) ? 0 : getDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "AspKindModel{" +
                "note='" + note + '\'' +
                ", code=" + code +
                ", kMId=" + kMId +
                ", mName='" + mName + '\'' +
                ", mText='" + mText + '\'' +
                ", mTable1=" + mTable1 +
                ", mName1='" + mName1 + '\'' +
                ", mFlag1=" + mFlag1 +
                ", mTable2=" + mTable2 +
                ", mName2='" + mName2 + '\'' +
                ", mFlag2=" + mFlag2 +
                ", delete=" + delete +
                '}';
    }
}